<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>布局页面</title>
		<!--导入jquery-->
		<script src="../js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
		<!-- 引入ztree -->
		<script src="../js/ztree/jquery.ztree.all-3.5.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="../js/ztree/zTreeStyle.css" />
		<script>
			$(function(){
				$("#grid").datagrid(
					{
						columns: [
									[

										{ field: 'id', title: '编号', width: 100 },

										{ field: 'name', title: '商品名称', width: 100 },

										{ field: 'price', title: '价格', width: 100, align: 'right' }

									]
								],
								toolbar: 
									[{	
										id :"add",
										iconCls: 'icon-add',
										text : '添加',
										handler: function() { alert('edit') }
									},  {
										id :"save",
										text: '保存',
										iconCls: 'icon-save',
										handler: function() { alert('help') }
									}]

								
					}
				)
			})
		</script>
	</head>

	<body>
		<table id="grid"> </table>

	</body>

</html>